#ifndef TESTANALYSIS_H
#define TESTANALYSIS_H

#include <QDialog>
#include "choosepaper.h"
//#include <QDesktopWidget.h>
#include "OOReader.h"

namespace Ui {
    class TestAnalysis;
}

class TestAnalysis : public QDialog
{
    Q_OBJECT

public:
    explicit TestAnalysis(QWidget *parent = 0);
    ~TestAnalysis();
private slots:
    void on_horizontalScrollBar_valueChanged(int i);
    void on_horizontalScrollBar_sliderPressed();
    void on_horizontalScrollBar_sliderReleased();
    void ShowQuestion(int ShowID);
    void ShowItemAnswer(int iStandardAnswer);
    void drawOptions();
    void drawDoc();
    QString ConvertAnswer(int iAnswer);

private:
    Ui::TestAnalysis *ui;
    QSqlQuery *m_TestAnalysisQuery;
    int m_iCurrentTestID;
    bool m_bScrollBarStoped;
    int m_iCurrentTestpaperitemID;
    int m_iTestAmount;
    int m_TestPaperID;
    OOReader *OTestQuestion,*OTestOoptions;
    PushDoc *forceQuestion;
    PushDoc *forceOptions;


};

#endif // TESTANALYSIS_H
